package com.ybt.communicate.tcp.configration;

public class TCPConstants {
    public static String DEFAULT_HOST="localhost";
    public static int DEFAULT_PORT=9000;
    
    //编码
    public static String ENCODE_UTF8="UTF-8";
    public static String ENCODE_GBK="GBK";
    public static String ENCODE_GB2312="gb2312";
    
    //长短连接
    public static String LONG_CONNECTOR="long";
    public static String SHORT_CONNECTOR="short";
    
    //读写策略
    public static String LENGTH_UNKNOWN="length:unknown";
    public static String FIX_LENGTH="fixlength://";
    
    //默认读写后的操作
    public static String TO_STRING="toString";
    public static String TO_BYTE="toByte";
    
    //同步
    public static int MODE_SYNCHRONIZED = 1;
    //异步
    public static int MODE_ASYNCHRONIZED = 2;

    //接收
    public static String IODIRECTION_RECEIVE = "receive";
    //发送
    public static String IODIRECTION_SEND = "send";
    public static String IODIRECTION_BOTH = "both";
    
    
}
